package a.j;

import a.c.d;
import a.c.e;
import a.c.y;

import java.util.Collection;

public class eg
  extends gf
{
  private boolean m = true;
  private boolean G = false;
  private boolean H = true;
  private boolean I = false;
  private boolean J = false;
  public static int K;
  
  protected sc a(double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    sc localsc1 = this.i.P().a(paramDouble1, paramDouble2, A(), false);
    boolean[] arrayOfBoolean = new boolean[7];
    sc localsc2 = new sc();
    y localy = localsc1.d();
    if (localy.e()) {}
    label136:
    label186:
    label236:
    while (bool2)
    {
      Object localObject = localy.j();
      if ((!bool2) && (bool1)) {
        break label347;
      }
      if (!bool2) {
        if (arrayOfBoolean[4] == 0)
        {
          if (bool2) {
            break label136;
          }
          if ((localObject instanceof e))
          {
            localsc2.a((e)localObject);
            arrayOfBoolean[4] = true;
            if (bool2) {
              break label333;
            }
            if (!bool1) {
              break label324;
            }
          }
        }
      }
      if (!bool2) {
        if (arrayOfBoolean[3] == 0)
        {
          if (bool2) {
            break label186;
          }
          if ((localObject instanceof d))
          {
            localsc2.a((d)localObject);
            arrayOfBoolean[3] = true;
            if (bool2) {
              break label333;
            }
            if (!bool1) {
              break label324;
            }
          }
        }
      }
      if (!bool2) {
        if (arrayOfBoolean[5] == 0)
        {
          if (bool2) {
            break label236;
          }
          if ((localObject instanceof jg))
          {
            localsc2.a((jg)localObject);
            arrayOfBoolean[5] = true;
            if (bool2) {
              break label333;
            }
            if (!bool1) {
              break label324;
            }
          }
        }
      }
      if (!bool2) {
        if (arrayOfBoolean[2] == 0)
        {
          if (bool2) {
            break label287;
          }
          if ((localObject instanceof ig))
          {
            localsc2.a((ig)localObject);
            arrayOfBoolean[2] = true;
            if (bool2) {
              break label333;
            }
            if (!bool1) {
              break label324;
            }
          }
        }
      }
      if (!bool2)
      {
        if (arrayOfBoolean[6] == 0)
        {
          if (bool2) {
            break label333;
          }
          if ((localObject instanceof jd))
          {
            localsc2.a((jd)localObject);
            arrayOfBoolean[6] = true;
          }
        }
        localy.f();
      }
      if (!bool1) {
        break;
      }
    }
    label287:
    label324:
    label333:
    a(localsc2);
    label347:
    return localsc2;
  }
  
  public void mouseMoved(double paramDouble1, double paramDouble2)
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    sc localsc = a(paramDouble1, paramDouble2);
    String str = null;
    y localy = localsc.d();
    label107:
    label245:
    do
    {
      if (!localy.e()) {
        break;
      }
      Object localObject = localy.j();
      if (bool2) {
        return;
      }
      if (bool1) {
        break label298;
      }
      if (!bool2) {
        if (y())
        {
          if (bool2) {
            break label107;
          }
          if ((localObject instanceof e))
          {
            if (bool2) {
              break label274;
            }
            str = getNodeTip((e)localObject);
            if (!bool1) {
              break label272;
            }
          }
        }
      }
      if (!bool2) {
        if (w())
        {
          if (bool2) {
            break label153;
          }
          if ((localObject instanceof d))
          {
            if (bool2) {
              break label274;
            }
            str = getEdgeTip((d)localObject);
            if (!bool1) {
              break label272;
            }
          }
        }
      }
      if (!bool2) {
        if (x())
        {
          if (bool2) {
            break label199;
          }
          if ((localObject instanceof jg))
          {
            if (bool2) {
              break label274;
            }
            str = a((jg)localObject);
            if (!bool1) {
              break label272;
            }
          }
        }
      }
      if (!bool2) {
        if (v())
        {
          if (bool2) {
            break label245;
          }
          if ((localObject instanceof ig))
          {
            if (bool2) {
              break label274;
            }
            str = a((ig)localObject);
            if (!bool1) {
              break label272;
            }
          }
        }
      }
      if ((bool2) || ((z()) && ((localObject instanceof jd)))) {
        str = a((jd)localObject);
      }
      if (str != null) {
        break;
      }
      localy.f();
    } while (!bool1);
    label153:
    label199:
    if (!bool2) {
      this.i.setToolTipText(str);
    }
    label272:
    label274:
    label298:
    return;
  }
  
  protected String getNodeTip(e parame)
  {
    ld localld = k().w(parame);
    if ((ld.E) || (localld.x() > 0)) {
      return c(localld.b(0).H());
    }
    return null;
  }
  
  protected String getEdgeTip(d paramd)
  {
    tb localtb = k().t(paramd);
    if ((ld.E) || (localtb.V() > 0)) {
      return c(localtb.d(0).H());
    }
    return null;
  }
  
  protected String a(jg paramjg)
  {
    return c(paramjg.H());
  }
  
  protected String a(ig paramig)
  {
    return c(paramig.H());
  }
  
  protected String a(jd paramjd)
  {
    boolean bool = ld.E;
    Collection localCollection = ce.a(paramjd);
    if ((bool) || (localCollection.size() > 0))
    {
      jg localjg = (jg)localCollection.iterator().next();
      if ((bool) || (localjg != null)) {
        return c(localjg.H());
      }
      return null;
    }
    return null;
  }
  
  private static String c(String paramString)
  {
    boolean bool = ld.E;
    if (!bool) {
      if (paramString != null)
      {
        if (bool) {
          break label27;
        }
        if (paramString.length() < 1) {
          return null;
        }
      }
    }
    label27:
    return paramString;
  }
  
  public boolean v()
  {
    return this.I;
  }
  
  public void g(boolean paramBoolean)
  {
    this.I = paramBoolean;
  }
  
  public boolean w()
  {
    return this.H;
  }
  
  public void h(boolean paramBoolean)
  {
    this.H = paramBoolean;
  }
  
  public boolean x()
  {
    return this.G;
  }
  
  public void i(boolean paramBoolean)
  {
    this.G = paramBoolean;
  }
  
  public boolean y()
  {
    return this.m;
  }
  
  public void j(boolean paramBoolean)
  {
    this.m = paramBoolean;
  }
  
  public boolean z()
  {
    return this.J;
  }
  
  public void k(boolean paramBoolean)
  {
    this.J = paramBoolean;
  }
  
  private int A()
  {
    boolean bool = ld.E;
    int i = 0;
    if (!bool) {
      if (y()) {
        i |= 0x1;
      }
    }
    if (!bool) {
      if (x()) {
        i |= 0x10;
      }
    }
    if (!bool) {
      if (w()) {
        i |= 0x2;
      }
    }
    if (!bool) {
      if (v()) {
        i |= 0x20;
      }
    }
    if (!bool) {
      if (z()) {
        i |= 0x40;
      }
    }
    return i;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.eg

 * JD-Core Version:    0.7.0.1

 */